﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Consejo.Monitoring.BusinessObjects
{
    [Serializable]
    public class ServerStatus
    {
        private string _serverId;
        public string ServerId
        {
            get { return _serverId; }
            set { _serverId = value; }
        }

        private List<IStatusItem> _statusItems = null;
        public List<IStatusItem> StatusItems
        {
            get { return _statusItems; }
            set { _statusItems = value; }
        }

        public ServerStatus(string serverId, List<IStatusItem> statusItems)
        {
            _serverId = serverId;
            _statusItems = statusItems;
        }

        public void AddStatusItem(IStatusItem item)
        {
            _statusItems.Add(item);
        }

        public bool RemoveStatusItem(IStatusItem item)
        {
            return _statusItems.Remove(item);
        }
    }
}
